package Services_Pool;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lishuo
 * Date: 2023-04-05
 * Time: 19:38
 */
public class TestPool {
    public static void main(String[] args) {
        // 创建线程池
        ExecutorService pool = Executors.newFixedThreadPool(10);
        // 添加任务到线程池中
        pool.submit(new Runnable() {
            @Override
            public void run() {
                System.out.println("haha");
            }
        });

    }
}
